package com.acp.service.impl;

import com.acp.dao.acpo.DcsGroupNameMapper;
import com.acp.model.DcsGroupName;
import com.acp.result.PageResult;
import com.acp.service.DcsGroupNameService;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
/**
 * All rights Reserved, Designed By 姑苏区政府大数据中心
 *
 * @version V1.0
 * @Title: null.java
 * @Package com.dci.controller.construction
 * @Description: 小组名称管理实现类
 * @author: 张星亮
 * @date: 2019/4/5
 * @Copyright: 2019 姑苏区政府大数据中心. All rights reserved.
 * 注意：本内容仅限于姑苏区政府大数据中心内部传阅，禁止外泄以及用于其他的商业目
 */
@Service
public class DcsGroupNameServiceImpl implements DcsGroupNameService {
    @Resource
    private DcsGroupNameMapper dcsGroupNameMapper;

    /**
     * 查询小组名称
     * @return 返回PageResult 封装的返回参数  保存成功msg:906 保存失败msg:911
     */
    @Override
    public PageResult queryGisRlementList() {
        List<DcsGroupName> list = dcsGroupNameMapper.queryGisElementList();
        PageInfo<DcsGroupName> pageInfo = new PageInfo<>(list);
        Long count = pageInfo.getTotal();
        return PageResult.success(list, count);
    }
}
